<form [formGroup]="form" (ngSubmit)="onSubmit(form,$event)" class="copy-task">
  <h2 mat-dialog-title>{{title}}</h2>
  <div mat-dialog-content>
    <mat-form-field class="full-width">
      <input matInput type="text" placeholder="列表名称" formControlName="name">
    </mat-form-field>
  </div>
  <div mat-dialog-actions>
    <button type="submit" mat-raised-button color='primary' [disabled]="!form.valid">保存</button>
    <button type="button" mat-button mat-dialog-close>关闭</button>
  </div>
</form>
